<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
	<title>用户管理</title>
	<jsp:include page="../comm/header.jsp"/>
	<link type="text/css" href="<%=request.getContextPath()%>/static/css/index.css" rel="stylesheet"/>
</head>
<body>
<input type="hidden" id="txtRootPath" value="<%=request.getContextPath()%>"/>
<div class="container-fluid" style="height: 100%">
	<div style="width: 100%;height: 8%;padding-top: 10px;min-height: 56px">
		<div id="toolbar" class="button-group">
			<shiro:hasPermission name="Y02:1">
				<button id="btnAdd" class="btn btn-default" onclick="addPost()"><i class="iconfont icon-xinzeng-copy"></i> 新增</button>
			</shiro:hasPermission>
			<shiro:hasPermission name="Y02:2">
				<button id="btnEdit" class="btn btn-default" onclick="editPost()"><i class="iconfont icon-modify"></i> 修改</button>
			</shiro:hasPermission>
			<shiro:hasPermission name="Y02:4">
				<button id="btnDel" class="btn btn-default" onclick="delPost()"><i class="iconfont icon-shanchu"></i> 删除</button>
			</shiro:hasPermission>
			<shiro:hasPermission name="Y02:8">
				<button id="btnSet" class="btn btn-default" onclick="setPermission()"><i class="iconfont icon-gangweiyaoqiu"></i> 设置权限</button>
			</shiro:hasPermission>
			<button id="btnPrint" class="btn btn-default" onclick="printPost()"><i class="iconfont icon-iconfontdayin"></i> 打印</button>
			<button id="btnExport" class="btn btn-default" onclick="exportPost()"><i class="iconfont icon-export"></i> 导出</button>
			<button id="btnClose" class="btn btn-default" onclick="exitFrame()"><i class="iconfont icon-tuichu"></i> 退出</button>
		</div>
	</div>
	<div class="row" style="width: 100%;height: 92%">
		<div class="col-md-3" style="height: 100%">
			<ul id="treeDept" class="ztree"></ul>
		</div>
		<div class="col-md-9" style="height:100%;">
			<table id="postTable"></table>
		</div>
	</div>
</div>
<div id="add-content" style="display: none">
	<form class="form-horizontal" style="padding: 15px" id="addPostForm">
		<div class="form-group">
			<label for="FCODE" class="col-xs-2 control-label">岗位代码:</label>
			<div class="col-xs-8">
				<input type="text" class="form-control" id="FCODE" name="FCODE" placeholder="岗位代码">
			</div>
			<div class="col-xs-2">
				<div class="checkbox">
					<label>
						<input type="checkbox" id="FISSTOP" name="FISSTOP"> 停用
					</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label for="fName" class="col-xs-2 control-label">岗位名称:</label>
			<div class="col-xs-10">
				<input type="text" class="form-control" id="FNAME" name="FNAME" placeholder="岗位名称">
			</div>
		</div>
		<div class="form-group">
			<label for="fDeptCode" class="col-xs-2 control-label">所属机构:</label>
			<div class="col-xs-9">
				<input type="text" class="form-control" id="FDEPTNAME" name="FDEPTNAME" style="cursor: pointer" placeholder="所属机构" readonly>
			</div>
			<div class="col-xs-1">
				<i class="icon iconfont icon-binoculars"  id = "menuBtn"  onclick="showMenu();return false;" style="font-size: 22px;color: #0a6999;margin-left:-0.5em"></i>
			</div>
		</div>
		<div class="form-group">
			<label for="fDesc" class="col-xs-2 control-label">描述:</label>
			<div class="col-xs-10">
				<input type="text" class="form-control" id="FDESC" name="FDESC" placeholder="描述">
			</div>
		</div>
		<input type="hidden" id = "FDEPTCODE" name="FDEPTCODE">
		<input type="hidden" id = "FORGCODE"  name="FORGCODE">
	</form>
</div>
<div id="deptTree" style="display: none;position: absolute;z-index: 20000000;background: #ffffff;border: 1px solid darkgrey;overflow-y: scroll">
	<div id = "parent-tree" class="ztree" style="width: 410px;min-height: 150px"></div>
</div>

<div id="permissionTree" style="display: none">
	<div id = "permission-Tree" class="ztree"></div>
</div>



<jsp:include page="../comm/footer.jsp"/>
<script type="text/javascript" src="post.js"></script>
</body>